<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Freemarker</title>
</head>
<>
这是Freemarker示例；${world!"这是NULL"}<br/>
${p.id}---${p.name}<br/>

<#list persons as p>
    ${p}
</#list>
<br/>

<#list map?keys as key>
    ${map[key]}
</#list>
<br/>

${map.ml}--${map.wlq}--${map.wh}

<#list maps as map>
    <#list map?keys as key>
        ${map[key]}
    </#list>
</#list>
<br/>

<#list map?keys as key>
    ${key}--${key_index}
</#list>
<br/>

<#assign x=0 />
<input type="hidden"/>
${x}<br/>

<#assign x>
    <#list ["星期一","星期二","星期三"] as n>
        ${n}
    </#list>
</#assign>
${x}<br/>

<#list ["星期一","星期二","星期三"] as n>
    <#if n_index != 1>
        ${n} -- 红色
        <#else>
            ${n} -- 绿色
    </#if>
</#list>
<br/>

${cut_time?datetime}<br/>

<#macro table pageNo>
    ${pageNo}
</#macro>
<@table pageNo=8/><br/>


<#macro table pageNo>
    ${pageNo}
    <#nested/>
</#macro>
<@table pageNo=8>这是8</@table><br/>




</body>
</html>